Page({
    data:{
        movie:""
    },
    onLoad(){
        var url = "https://www.easy-mock.com/mock/5f923035288c725a6620fec9/movie/index"
        wx.request({
            url: url,
            header: {'content-type':'application/json'},
            method: 'GET',
            dataType: 'json',
            responseType: 'text',
            success: (result)=>{
                console.log(result.data.data)
                // 给data的属性设置数据
                this.setData({
                    movie:result.data.data
                })
            }
        });
    }
})
